package com.xu.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Course {
    private int courseId;
    private String courseName;
    private int collegeId;
    private String collegeName;
    private int teacherId;
    private String teacherName;
    private int courseScore;
    private String description;
    private String schedule;
    private int stock;


    /* public Course(CourseDto courseDto,int stock) {
        this.courseName = courseDto.getCourseName();
        this.collegeName = courseDto.getCollegeName();
        this.teacherName = courseDto.getTeacherName();
        this.courseScore = courseDto.getCourseScore();
        this.description = courseDto.getDescription();
        this.schedule = courseDto.getSchedule();
        this.stock = stock;
    }*/

    public Course(CourseDto courseDto,int courseId) {
        this.courseId = courseId;
        this.courseName = courseDto.getCourseName();
        this.collegeName = courseDto.getCollegeName();
        this.teacherName = courseDto.getTeacherName();
        this.courseScore = courseDto.getCourseScore();
        this.description = courseDto.getDescription();
        this.schedule = courseDto.getSchedule();
    }
}
